@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-text-rendering: optimizeLegibility;
  -moz-osx-text-rendering: optimizeLegibility;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

#app {
  height: 100%;
  font-family: $themeFontFamily;
  overflow-x: hidden;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.el-dialog__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;

  .el-dialog {
    max-height: 90vh;
    background: transparent;

    .el-dialog__body {
      max-height: 77vh;

      overflow-y: auto;
    }
  }
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: "";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

// 公用样式start
::-webkit-scrollbar {
  width: 8px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: hsla(0, 0%, 53%, 0.4);
}

::-webkit-scrollbar-track {
  background: hsla(0, 0%, 53%, 0.1);
}

// // 公用样式start
// ::-webkit-scrollbar {
//   width: 8px;
// }

// ::-webkit-scrollbar-thumb {
//   background: transparent;
//   border-radius: 4px;
// }

// // :hover::-webkit-scrollbar-thumb {
// //   background: hsla(0, 0%, 53%, 0.4);
// // }

// // :hover::-webkit-scrollbar-track {
// //   background: hsla(0, 0%, 53%, 0.1);
// // }
// ::-webkit-scrollbar-thumb {
//   background: hsla(0, 0%, 53%, 0.4);
// }

// ::-webkit-scrollbar-track {
//   background: hsla(0, 0%, 53%, 0.1);
// }

.ml-20 {
  margin-left: 20px;
}

.mr-20 {
  margin-right: 20px;
}

.w50p,
.w100p {
  width: 48%;

  .el-select {
    width: 100%;
  }

  .el-date-editor {
    width: 100%;
  }

  .el-cascader {
    width: 100%;
  }
}

.w100p {
  width: 100%;
}


.dialog-footer {
  .cancelbtn {
    background: $appMainTextColor;
    border-radius: 5px 5px 5px 5px;
    opacity: 1;
    color: $dialogFooterColor;

    &:hover {
      color: $appMainTextColor;
      background: $dialogFooterBackgroundColor;
    }
  }

  .savebtn {
    background: $dialogFooterColor;
    border-radius: 5px 5px 5px 5px;
    opacity: 1;

    &:hover {
      color: $dialogFooterColor;
      background: $appMainTextColor;
    }
  }

  .editbtn {
    background: $dialogFooterColor;
    border-radius: 5px 5px 5px 5px;
    opacity: 1;

    &:hover {
      color: $dialogFooterColor;
      background: $appMainTextColor;
    }
  }
}

// .show-detail-btns{
//   display: flex;
//   justify-content:center;
//   align-items: center;
// }
// // 查看详情的文字按钮
// .show-detail-info-btn{
//     color: #66FFFF;
//     position: relative;
//     font-size: 15px;
//     margin: 0 10px;
//     cursor: pointer;
//     width: fit-content;
//     white-space: nowrap;
//     &:after{
//       content:"";
//       position: absolute;
//       bottom: -1px;
//       left:0;
//       width: 100%;
//       height: 2px;
//       z-index: 999;
//       background-color:#66FFFF;
//     }
// }
// .show-detail-info-btn-del{
//   color:#e32d2d ;
//   &:after{
//     background-color:#e32d2d;
//   }
// }
// .edit-btns{
//   color:#f9a82d ;
//   &:after{
//     background-color:#f9a82d;
//   }
// }
.stop-info-btn {
  color: #e32d2d;

  &:after {
    background-color: #e32d2d;
  }
}

.start-info-btn {
  color: #1be574;

  &:after {
    background-color: #1be574;
  }
}

// 查询条件内容
.select-box-content {

  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: #C1CFD2;
  font-size: 16px;
  // .select-box-content-name {
  //   // width: 140px;
  // }

  .select-box-content-nameA {
    width: 160px;
  }

  .select-box-content-all {
    cursor: pointer;
    padding: 0 10px 0 0;

    &:hover {
      font-weight: 600;
      color: #54DEE2;
    }
  }

  .select-box-content-list {
    cursor: pointer;
    padding: 0 20px 0 0;

    &:hover {
      font-weight: 600;
      color: #54DEE2;
    }
  }

  .select-box-content-list-time {
    cursor: pointer;
    padding: 0 10px;

    &:hover {
      font-weight: 600;
      color: #54DEE2;
    }
  }

  >.el-input {
    width: 200px;
    margin: 0 10px;
  }

  >.el-cascader {
    width: 200px;
    margin: 0 10px;
  }

  >.el-date-editor {
    margin: 0 10px;
  }
}

// .seach-btn{
//   display: flex;
//   justify-content: flex-end;
// }
.search-form {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  background: $hamburgerBgColor;
  margin-bottom: 15px;

  .operationBtn {
    // width: 100%;
    text-align: right;
    position: absolute;
    right: 15px;
    top: 10px;

    .screenBtn {
      display: inline-block;
      margin-top: 7px;
      margin-right: 6px;
      // background-color: #02bcec;
      // border-radius: 5px;
      // height: 32px;
      // width: 106px;
      cursor: pointer;
      text-align: center;
      font-size: 16px;
      padding-top: 2.5px;

      .btn {
        padding-top: 3px;
        margin: 0 2px;
        text-align: center;
        font-size: 16px;
        display: inline-block;
        border-radius: 4px;
        opacity: 1;
      }

      .btn2 {
        padding-top: 3px;
        margin: 0 10px 0 0;
        text-align: center;
        font-size: 16px;
        display: inline-block;
        opacity: 1;
      }

      .arrow-down {
        transform: rotate(90deg);
      }
    }
  }
}

.table-btns-box2 {
  display: inline-flex;
}

:root {
  --view-color: #54dee2;
  --hover-color: #006e91;
}

.table-operate-box-with-img {
  position: relative;
  color: #54dee2;
  // margin-left: 25px;
  display: flex;
  justify-content: center;
  align-items: center;

  img {
    // position: absolute;
    // bottom: 0;
    margin: 0 5px;
    // left: -20px;
  }

  i {
    margin: 0 5px -1px;
  }

  & span {
    &::after {
      content: "";
      background: #54dee2;
      width: calc(100% - 24px);
      height: 1px;
      position: absolute;
      bottom: 0;
      right: 0%;
    }
  }

  &:hover {
    color: #006e91;

    ::after {
      background-color: #006e91;
    }
  }
}

.table-btns-box-without-icon {
  position: relative;
  color: var(--view-color);
  margin-left: 5px;

  &::after {
    content: "";
    background: var(--view-color);
    width: 100%;
    height: 1px;
    position: absolute;
    bottom: 0;
    right: 0%;
  }

  &:hover {
    color: var(--hover-color);

    &::after {
      background-color: var(--hover-color);
    }
  }
}

// 表格按钮样式
.table-btns-box {
  position: relative;
  color: var(--view-color);
  margin-left: 5px;
  cursor: pointer;

  i {
    margin-right: 5px
  }

  span {
    &::after {
      content: "";
      background: var(--view-color);
      width: calc(100% - 19px);
      height: 1px;
      position: absolute;
      bottom: 0;
      right: 0%;
    }
  }

  &:hover {
    color: var(--hover-color);

    ::after {
      background-color: var(--hover-color);
    }
  }
}

// 表格按钮样式
.table-del-box {
  position: relative;
  color: #FFD506;

  i {
    margin-right: 5px
  }

  span {
    &::after {
      content: "";
      background: #FFD506;
      width: 100%;
      height: 1px;
      position: absolute;
      bottom: 0;
      right: 0%;
    }
  }

  &:hover {
    color: #006E91;

    ::after {
      background-color: #006E91;
    }
  }
}

.table-btns {
  height: 30px;
  line-height: 30px;
  opacity: 1;
  font-size: 16px;
  font-weight: 400;
  color: #54DEE2;
  padding: 0px 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
  margin: 0 5px;
  white-space: nowrap;

  >p {
    cursor: pointer;
  }

  // >p {
  //   margin-left: 5px;
  //   white-space: nowrap;
  // }
}

// 展开告警模板
.spec-btns {
  background: #00747E;
  color: #fff;

}

.select-btns {
  cursor: pointer;

  &:hover {
    background-color: #54DEE2;
    color: #00282f;

  }
}

.add-btns {
  cursor: pointer;

  &:hover {
    background-color: #00bcaf;
    color: #fff;
    border-color: #fff;
  }
}

.query-btns {
  cursor: pointer;

  &:hover {
    background-color: #02989a;
    color: #fff;
    border-color: #fff;

  }
}

.detail-btns {
  cursor: pointer;

  &:hover {
    background-color: #096dde;
    color: #fff;
    border-color: #fff;

  }
}

.table_del_btn {
  --view-color: #ffd506;
  //color: rgb(44, 214, 92);
}

.del-btns {
  cursor: pointer;

  &:hover {
    background-color: rgb(227, 56, 56);
    color: #fff;
    border-color: #fff;

  }
}

.edit-btns {
  cursor: pointer;

  &:hover {
    background-color: rgb(238, 139, 40);
    color: #fff;
    border-color: #fff;

  }
}

.cannot {
  background-color: #999c9c;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  margin-left: 10px;

  &:hover {
    background-color: #999c9c;
    color: rgba(255, 255, 255, 0.5);
    border-color: 1px solid rgba(255, 255, 255, 0.5);

  }
}

.seach-box {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  background: $hamburgerBgColor;
  margin-bottom: 15px;

  .select-box-content {
    width: fit-content;
  }

  .operationBtn {
    // width: 100%;
    text-align: right;
    position: absolute;
    right: 15px;
    top: 10px;

    .screenBtn {
      display: inline-block;
      margin-top: 7px;
      margin-right: 6px;
      // background-color: #02bcec;
      // border-radius: 5px;
      // height: 32px;
      // width: 106px;
      cursor: pointer;
      text-align: center;
      font-size: 16px;
      padding-top: 2.5px;

      .btn {
        padding-top: 3px;
        margin: 0 2px;
        text-align: center;
        font-size: 16px;
        display: inline-block;
        border-radius: 4px;
        opacity: 1;
      }

      .btn2 {
        padding-top: 3px;
        margin: 0 10px 0 0;
        text-align: center;
        font-size: 16px;
        display: inline-block;
        opacity: 1;
      }

      .arrow-down {
        transform: rotate(90deg);
      }
    }
  }
}
